@import '../../../var';
.swiper-tab {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 88rpx;
    padding: 0 250rpx;
    color: $info-color;
    font-size: 28rpx;
    line-height: 88rpx;
    text-align: center;
    background-color: #fff;
    &.fixed-top {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 5;
        margin-top: 0;
        border-bottom: 1px solid #f4f5f5;
    }
}

.swiper-tab-item {
    width: 50%;
    font-size: 28rpx;
    &.active {
        color: $title-color;
    }
}

page {
    width: 100%;
    height: 100%;
    .container {
        width: 100%;
        height: 88rpx;
    }
    .nav {
        position: fixed;
        left: 30rpx;
        z-index: 99;
        display: flex;
        align-items: center;
        width: 690rpx;
        height: 60rpx;
        white-space: nowrap;
        background-color: #fff;
    }
    .nav-item {
        display: inline-block;
        height: 48rpx;
        margin-right: 20rpx;
        color: $title-color;
        font-size: 24rpx;
        text-align: center;
        .itemBox {
            position: relative;
            .item-title {
                position: relative;
                z-index: 2;
                padding: 0rpx 10rpx;
            }
            .item-content-acitve {
                background-color: $primary-color;
            }
            .item-content {
                position: absolute;
                bottom: 0rpx;
                width: 100%;
                height: 15rpx;
                border-radius: 15rpx;
            }
        }
    }
    .nav-item.active {
        font-weight: 700;
    }
}

.section {
    margin-top: 60rpx;
}

.topics-container {
    display: grid;
    grid-gap: 30rpx 30rpx;
    grid-template-columns: repeat(auto-fill, 210rpx);
    padding: 20rpx 30rpx 40rpx;
    .topic-item {
        width: 210rpx;
        border-radius: 16rpx;
        box-shadow: 0rpx 2rpx 3rpx 0rpx rgba(0, 0, 0, 0.1);
        &:first-child {
            margin-left: 0;
        }
        &:nth-child(3n + 1) {
            margin-left: 0;
        }
    }
}

.noTopic {
    width: 100%;
    margin-top: 100rpx;
    text-align: center;
}

.creatTopic {
    position: fixed;
    right: 60rpx;
    bottom: 60rpx;
    width: 100rpx;
    height: 100rpx;
    image {
        width: 100%;
        height: 100%;
    }
}